<table class="table table-bordered">
	<tr class="thead">
		<td colspan="{{$td}}">
		  ◆ {{$title}}管理 －> {{$title}}列表
		</td>
	</tr>
	<tr class="ttitle">
		<th width="30"><label><input class="check_all" type="checkbox"/></label></th>
		<th>名称</th>
		<th>行数</th>
		<th>大小</th>
		<th>创建时间</th>
		<th>修改时间</th>
		<th>引擎</th>
		<th>字符集</th>
		<th>注释</th>
		<th>操作</th>
	</tr>
	<tbody>
		{{section name=loop loop=$table_status}}
		<tr>
			<td><label><input name="check_id[]" class="check_id" value="{{$table_status[loop].name}}" type="checkbox"/></label></td>
			<td><a href="index.php?app=tool&act=mysql&go=record&table={{$table_status[loop].name}}&url_param={{$url_param}}" title="Mysql管理" style="color:green;">{{$table_status[loop].name}}</a></td>
			<td>{{$table_status[loop].rows}}</td>
			<td>{{$table_status[loop].data_length}}</td>
			<td>{{$table_status[loop].create_time}}</td>
			<td>{{$table_status[loop].update_time}}</td>
			<td>{{$table_status[loop].engine}}</td>
			<td>{{$table_status[loop].collation}}</td>
			<td>{{$table_status[loop].comment}}</td>
			<td width="80px"> 
				<a class="btn iframe" href="index.php?app=tool&act=mysql&go=struct&table={{$table_status[loop].name}}&url_param={{$url_param}}&iframe=true" title="{{$table_status[loop].name}} 表结构">结构</a>
				{{*<!--
				<a class="btn" href="index.php?app=tool&act=mysql&go=truncate&table={{$table_status[loop].name}}&url_param={{$url_param}}" title="确定要清空{{$table_status[loop].name}}表吗？">清空</a>
				<a class="btn" href="index.php?app=tool&act=mysql&go=drop&table={{$table_status[loop].name}}&url_param={{$url_param}}" title="确定删除这条数据吗？">删除</a>
				-->*}}
			</td>
		</tr>
		{{/section}}
		<tr class="noline ttitle">
		  <td colspan="{{$td}}">
			总共表：{{$attach_arr.count}}&nbsp;&nbsp;&nbsp;&nbsp;总共行数：{{$attach_arr.rows}}&nbsp;&nbsp;&nbsp;&nbsp;总共大小：{{$attach_arr.length}}
		  </td>
		</tr>
		<tr class="thead">
		  <td colspan="{{$td}}">
			<label><input type="checkbox" id="file_save" /></label>保存文件
			<input type="text" id="file_path" size="80" value="{{$save_path}}"/>
			&nbsp;&nbsp;<a id="sava_file_cho" class="btn">导出已选表</a>
		  </td>
		</tr>
	</tbody>
</table>

<script type="text/javascript">
/*
<!--
function ajaxTodoCall(){
	navTab.reload('{{$url_param}}', {}, 'Tool');
}

$("#sava_file_cho").each(function(){
    $(this).click(function(event){
          var table_arr = new Array();
          var table_str = null;
          var file_save = $("#file_save").attr("checked");
          var file_path = $("#file_path").val();
          var url = "index.php?app=tool&act=xxxx&go=export&url_param={{$url_param}}";
       	  $("input[name=ids][class=choose_table][checked=true]").each(function(){
       			table_arr[table_arr.length] = $(this).val();
       	  });

       	  if(table_arr.length == 0){
       			alertMsg.error("请选择您要导出的表!");
       			return false;
          }

          if(file_save && file_path == ""){
        	  	alertMsg.error("请输入您要保存的路径!");
     			return false;
          }

  		  table_str = table_arr.join(',');
          if(!file_save){
        	  window.open(url+"&ids="+table_str);
        	  return;
          }

          $.ajax({
        		type: 'POST',
        		data: {file_save: file_save, file_path: file_path, ids: table_str},
        		url: url,
        		dataType: "json",
        		cache: false,
        		success: function(response){
					if(response.statusCode == 200){
						alertMsg.correct(response.message);
					}else{
						alertMsg.error(response.message);
					}
            	},
        		error: DWZ.ajaxError
      	  });
		  event.preventDefault();
    });
});
//-->
*/
</script>


